﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="CreateAccount.aspx.cs" Inherits="RecipeBookWeb.CreateAccount" Title="Create Account" %>

<asp:Content ID="CreateAccountContent" ContentPlaceHolderID="MainContent" Runat="Server">
    <div class="post">
	    <h2 class="title">Create an Account</h2>
		<div class="entry">
		    <asp:Label runat="server" ID="ErrorLabel" Visible="false" Font-Bold="true" ForeColor="Red" />
		    First Name:
		    <asp:TextBox runat="server" ID="FirstNameTextBox" />
		    <asp:RequiredFieldValidator ID="RequiredFirstName" runat="server" ControlToValidate="FirstNameTextBox"
		        ErrorMessage="First Name field is required." Display="Dynamic" />
		        <br /><br />
		        
		    Last Name:
		    <asp:TextBox runat="server" ID="LastNameTextBox" />
		    <asp:RequiredFieldValidator ID="RequiredLastName" runat="server" ControlToValidate="LastNameTextBox"
		        ErrorMessage="Last Name field is required." Display="Dynamic" />
		    <br /><br />
		
		    Username:
			<asp:textbox runat="server" id="UsernameTextBox" />
			<asp:RequiredFieldValidator id="requiredName" runat="server" ControlToValidate="UsernameTextBox"
			    ErrorMessage="You must choose a username." Display="Dynamic" />
			<br /><br />
					
			Password:
			<asp:textbox runat="server" id="PasswordTextBox" TextMode="Password" />
			<asp:RequiredFieldValidator id="requiredPass" runat="server" ControlToValidate="PasswordTextBox"
			       ErrorMessage="You must choose a password." Display="Dynamic" />
			<br /><br />
		    
			E-Mail Address:
			<asp:textbox runat="server" id="EmailTextBox" />
			<asp:RequiredFieldValidator id="requiredEmail" runat="server" ControlToValidate="EmailTextBox"
			       ErrorMessage="You must enter an e-mail address." Display="Dynamic" />
			<asp:RegularExpressionValidator id="validEmail" runat="server" Display="Dynamic"
		        ErrorMessage="Enter a valid e-mail." ControlToValidate="EmailTextBox"
		        ValidationExpression="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}$" />
			<br /><br />
					
			<asp:button runat="server" id="SubmitButton" text="Register" onclick="Register_Click" />
					
		</div>
	</div>
</asp:Content>